html,
body {
    width: 100%;
    height: 100%;
}

body,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    background-image: url(../img/bg_3.jpg);
    color: #fff;
    -moz-background-size: cover;
    background-size: cover;
}

.ui-index h1 {
    margin-top: 0;
    font-size: 50px;
    text-shadow: 2px 8px 2px #000;
}

.ui-panel {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    /*margin: -132.5px auto 0 auto;*/
    -webkit-transform: translate(0, -65%);
    -moz-transform: translate(0, -65%);
    -ms-transform: translate(0, -65%);
    transform: translate(0, -65%);
}

.ui-panel .btn {
    display: block;
    width: 140px;
    margin: 10px auto 0 auto;
    border: 1px solid #999;
    background: none;
    font-size: 20px;
    color: #fff;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.ui-rule,
.ui-setting {
    width: 80%;
    margin-left: 10%;
    padding: 18px;
    border: 2px solid #fff;
    background-color: #070808;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

.ui-setting select {
    width: 100px;
    margin: 0 0 10px 10px;
    -moz-border-radius: 0;
    border-radius: 0;
}

.ui-rule button,
.ui-setting button {
    border: 2px solid #fff;
    background-color: #070808;
    font-size: 18px;
    color: #fff;
}

.ui-setting {
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    transition: all .2s;
}

/*默认隐藏*/
.ui-index,
.ui-rule,
.ui-end {
    display: none;
}

/*游戏状态切换*/
[data-page='ui-index'] .ui-index {
    display: block;
}

[data-page='ui-rule'] .ui-rule {
    display: block;
}

[data-page='ui-setting'] .ui-setting {
    left: 0;
    opacity: 1;
    visibility: visible;
}

[data-page='ui-end'] .ui-end {
    display: block;
}